package com.yingsheng.bi.hks.mapping;

import com.yingsheng.bi.hks.bo.GoodsBo;
import com.yingsheng.bi.hks.bo.GoodsOrderBo;
import com.yingsheng.bi.hks.repository.dao.po.Goods;
import com.yingsheng.bi.hks.repository.dao.po.ext.GoodsOrder;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface GoodsMappings {

    GoodsMappings INSTANCE = Mappers.getMapper(GoodsMappings.class);

    GoodsBo goods2GoodsBo (Goods goods);

    List<GoodsBo>  goodsList2boList(List<Goods> goods);

    List<GoodsOrderBo> goodsOrderList2boList(List<GoodsOrder> goodsOrders);
}
